<?php
if(stristr($_SERVER['REQUEST_URI'], 'init.php')) die('system halted');

session_start();
$dbms = 'mysql';     //数据库类型
//$host = 'localhost'; //数据库主机名
$host = "10.66.174.199";
$dbName = 'huodongbaoming';    //使用的数据库
//$user = 'root';      //数据库连接用户名
$user = 'weixin';
$pass = 'usbw';          //对应的密码
$pass = '123456';
//$dbport = '3307';
$dbport = '3306';
$dsn="$dbms:host=$host;port=$dbport;dbname=$dbName";
$dbh = new PDO($dsn, $user, $pass,array(PDO::MYSQL_ATTR_INIT_COMMAND  => "SET NAMES'utf8';"));//连接数据库
